package jp.bluecab.bluecabsystem.locrecserv.classes;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class LocRecUser {
	
	@SuppressWarnings("unused")
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private String loginid; // ログインID
	
	@Persistent
	private String email; // メールアドレス
	
	@Persistent
	private Date createdAt; // 作成日時
	
	public LocRecUser(String lid, String eml) {
		loginid = lid;
		email = eml;
		setCreatedAt(new Date());
	}
	
	public void setLoginId(String name) {
		this.loginid = name;
	}
	
	public String getLoginId() {
		return loginid;
	}
	
	public void setEmail(String mailAddress) {
		this.email = mailAddress;
	}
	
	public String getEmail() {
		return email;
	}
	
	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}
	
	public Date getCreatedAt() {
		return createdAt;
	}
}
